﻿using System;
using System.Data;
using System.Data.SqlClient;

namespace Team4Mock.DAO
{
    public class GovernmentDAO
    {
        Helper h=new Helper();
        public DataTable Getdata()
        {
            return h.GetData("Gov_Getdata");
        }
        public DataTable GetdataByID(int id)
        {
            SqlParameter[]p=new SqlParameter[1];
            p[0]=new SqlParameter("@id",id);
            p[0].SqlDbType = SqlDbType.Int;
            return h.GetData("Gov_GetdataByID",p);
        }
    }
}